<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        for(var row=1; row<=6; row++){
            for(var col=1; col<=row; col++){
                document.write("*");
            }
            document.write("<br>");
        }
    </script>
</body>
</html>